package com.wuxiaofan.admin.client;

import com.wuxiaofan.common.vo.ReturnResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wuxiaofan
 * @date 2021/11/9 10:08 上午
 */
@FeignClient(name = "gulimall-member",path = "/member")
public interface MemberClient {

    @GetMapping("all")
    ReturnResult all();

    @GetMapping("/umsMember/findByUsername/{username}")
    ReturnResult findByUsername(@PathVariable("username") String username);
}
